package com.pine.app.module.security.oauth.support;


import com.pine.app.module.security.oauth.provider.OAuth2Authentication;

import javax.servlet.http.HttpServletRequest;

/**   oauth2的亲求参数校验基类
 * @author XYJXUST
 * @date 2018-3-31
 **/
public interface OAuthRequestValidator {
    /**
     * 封装请求参数
     */
    HttpTokenRequest createRequest(HttpServletRequest request);
    /**
     * 参数检查
     */
    OAuth2Authentication validateParams(HttpTokenRequest request);

    /**
     * @Description: 获取grant类型
     * @Author: xiaoyuan
     * @Date: 2019/10/8 11:05
     */
    String getGrantType();




}
